package org.applicationflow.document

import command.Command
import javax.swing.JComponent

/**
 * Something that can be shown or edited in an Application.
 */
trait Document {

  /**
   * Override to specify document specific commands that should only be visible when the document is active.
   */
  def commands : List[Command] = Nil

  def getView : JComponent 

}